<template>
  <div>
    <div class="block">
      <el-pagination
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage"
        :page-size="pagesize"
        layout="prev, pager, next, jumper"
        :total="total"
      ></el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    total: Number,
  },
  data() {
    return {
      currentPage: 1, //当前页数
      pagesize: 10, //显示个数
    };
  },
  methods: {
    handleCurrentChange(val) {
      //   console.log(val);
      this.$emit("pageadd", val);
    },
  },
  computed: {
  },
};
</script>

<style>
</style>